package com.shu.framework.enums;

public enum  CodeMsg {
    /**通用响应吗*/
    SUCCESS("system","00000","success"),
    SYSTEM_ERROR("system","00001","服务端异常"),
    SYSTEM_PARAM("system","00002","参数校验异常：%s"),
    /**用户模块*/
    SESSION_NOT_EXITS("user","10001","Session不存在或者已经失效"),
    PASSWORD_NOT_NULL("user","10002","密码不能为空"),
    PASSWORD_ERROR("user","10003","密码错误"),
    PHONENO_NOT_NULL("user","10004","手机号不能为空"),
    PHONENO_NOT_EXITS("user","10005","手机号不存在"),
    PHONENO_ERROR("user","10006","手机号格式错误"),
    /**秒杀模块*/
    SECKILL_OVER("seckill","20001","秒杀结束！"),
    SECKILL_REPEATE("seckill","20002","不能重复秒杀！");
    /**
     * 响应吗
     */
    public String code;
    /**
     * 信息
     */
    public String msg;
    /**
     * 所属模块
     */
    public String module;

    CodeMsg(String module,String code,String msg) {
        this.code=code;
        this.msg = msg;
        this.module=module;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }
}
